const information = document.getElementById('info')
information.innerText = `本应用正在使用 Chrome (v${versions.chrome()}), Node.js (v${versions.node()}), 和 Electron (v${versions.electron()})`
const func = async () => {
    const response = await window.versions.ping()
    console.log(response) // 打印 'pong'
}

func()
const setButton = document.getElementById('btn')
const txtHtml = document.getElementById('btn-text')
let count = 0
setButton.addEventListener('click', () => {
    count++
    txtHtml.innerText = `我被点击了${count}次`
})
